<h1>生命周期</h1>
<button (click)="isShow=!isShow">切换显示</button>

<!--  -->
<app-myc01 *ngIf="isShow"></app-myc01>